package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qijian.maindata.domain.AdjustFields;
import com.qijian.maindata.domain.query.AdjustFieldsQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 调整字段Mapper接口
 *
 * @author qijian
 * @date 2022-10-14
 */
public interface AdjustFieldsMapper extends BaseMapper<AdjustFields> {

    @Select("select count(0) from adjust_fields WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    String selectAdjustedFields(@Param(Constants.WRAPPER) QueryWrapper<AdjustFieldsQuery> query);

    int removeById(String id);
}
